<template>
  <div>测试页面</div>
  <button @click="toLogin">测试登录</button>
</template>

<script lang="ts" setup>
import { TestMoak, reqUserLogin } from '@/api/login'
import { onMounted } from 'vue'
// 测试接口
const testApi = async () => {
  const res = await TestMoak()
  console.log(res);

}
onMounted(() => {
  testApi()
})
const toLogin = async () => {
  const res = await reqUserLogin('admin', '11111')
  console.log(res);
}
</script>

<script lang="ts">
export default {
  name: 'testView'
}
</script>

<style lang="scss" scoped></style>
